import request from '@/utils/request'

// 登录方法
export function login(params) {
	return request({
		url: `/ws/appUser/login`,
		headers: {
			isToken: false
		},
		method: 'post',
		params: params
	})
}

// 获取用户详细信息
export function getInfo() {
	return request({
		'url': '/ws/userProfile/getUserInfo',
		'method': 'get'
	})
}

// 发送注册验证码
export function sendsms(phoneNumber) {
	return request({
		url: `/ws/sendSms/${phoneNumber}`,
		method: 'get',
	})
}

// 修改密码
export function revisepassword(data) {
	return request({
		url: `/ws/userPassword/revisepassword`,
		method: 'get',
		data
	})
}

// 忘记密码
export function forgetPassword(data) {
	return request({
		url: `/ws/userPassword/forgetPassword`,
		method: 'get',
		headers: {
			isToken: false
		},
		data
	})
}